﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace WMSSoft.WinKStart.ViewModel
{ 
    public class SingleStartFolderItemViewModel : BaseTreeViewItemViewModel
    {
        string _FolderPath = "";
        string _Header = "";


        public SingleStartFolderItemViewModel(SingleStartFolderItemViewModel Parent, string ViewName, string Path)
        {           
            Header = ViewName;
            FolderPath = Path;
        }

        public SingleStartFolderItemViewModel(string ViewName, string Path, ObservableCollection<BaseTreeViewItemViewModel> SubItems)
        {
            Header = ViewName;
            FolderPath = Path;
            base.Items = SubItems;
        }

        public string FolderPath 
        {
            get { return _FolderPath; }
            protected set
            {
                _FolderPath = value;
                OnPropertyChanged("FolderPath");
            }
        }

        public string Header
        {
            get { return _Header; }
            protected set
            {
                _Header = value;
                OnPropertyChanged("Header");
            }
        }
    }
}
